package model

// Comment model.
type Comment struct {
	Model

	User      User   `json:"user" validate:"-"`
	UserID    uint64 `json:"userID"`
	ArticleID uint64 `json:"articleID" validate:"required"`
	Content   string `gorm:"type:text" json:"content" validate:"required"`
	IP        string `gorm:"size:128" json:"ip,omitempty"`
	UserAgent string `gorm:"size:255" json:"userAgent,omitempty"`
}
